package com.stellar.circle.convert;

import com.stellar.circle.basic.entity.SPostCategory;
import com.stellar.circle.controller.admin.sPostCategory.vo.SPostCategoryRequestPageVO;
import com.stellar.circle.controller.admin.sPostCategory.vo.SPostCategoryRequestVO;
import com.stellar.circle.controller.admin.sPostCategory.vo.SPostCategoryResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 帖子分类表转换器
 * @author Jqchan
 * @version 1.0
 * @date 2025-05-17 19:12:04
 */
@Mapper
public interface SPostCategoryConvert {

    SPostCategoryConvert INSTANCE = Mappers.getMapper(SPostCategoryConvert.class);

    SPostCategory convert(SPostCategoryResponseVO responseVO);

    SPostCategory convert(SPostCategoryRequestVO requestVO);

    SPostCategory convert(SPostCategoryRequestPageVO requestPageVO);

    SPostCategoryResponseVO convert(SPostCategory entity);

    List<SPostCategoryResponseVO> convertEntityToRespList(List<SPostCategory> entities);
}
